package com.mingweicai.intergration.hwjs;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

  public static void main(String args[]){
    test3();
  }

  /*
      题目描述
      •连续输入字符串，请按长度为8拆分每个字符串后输出到新的字符串数组；
      •长度不是8整数倍的字符串请在后面补数字0，空字符串不处理。
   */
  public static void test1(){
    Scanner scanner = new Scanner(System.in);

    while(scanner.hasNext()){
      String str = scanner.nextLine();
      while(str.length()>=8){
        System.out.println(str.substring(0,8));
        str = str.substring(8);
      }
      if(str != null && !"".equals(str)){
        int length = str.length();
        StringBuilder builder = new StringBuilder();
        builder.append(str);
        for(int i=length;  i<8; i++){
          builder.append("0");
        }
        System.out.println(builder.toString());
      }
    }
  }

  /**
   * 进制转换
   */
  public static void test2(){
    Scanner scanner = new Scanner(System.in);
    Map<String,Integer> map = new HashMap<>();
    map.put("0",0);
    map.put("1",1);
    map.put("2",2);
    map.put("3",3);
    map.put("4",4);
    map.put("5",5);
    map.put("6",6);
    map.put("7",7);
    map.put("8",8);
    map.put("9",9);
    map.put("A",10);
    map.put("B",11);
    map.put("C",12);
    map.put("D",13);
    map.put("E",14);
    map.put("F",15);

    while(scanner.hasNext()){
      String str = scanner.nextLine();
      str = str.substring(2);
      int length = str.length();

      int res = 0;
      for(int i=0; i<length; i++){
        res = res << 4;
        String key = String.valueOf(str.charAt(i));
        int value = map.get(key);
        res = (res | value);
      }
      System.out.println(res);
    }
  }

  public static void test3(){
    Scanner scanner = new Scanner(System.in);
    Double d = scanner.nextDouble();
    d = d * 10;
    int rs = d.intValue();
    if(rs  % 10 >= 5){
      System.out.println(rs / 10 + 1);
    }else{
      System.out.println(rs/10);
    }
  }


}
